package sk.tuke.constraintbuilder.builder.resourcemodel;

/**
 * Created by IntelliJ IDEA.
 * User: Brano
 * Date: 16.4.2011
 * Time: 17:26
 */
public abstract class Element {
    protected String addXMLAttr(String attrName, String attrValue) {
        attrValue = attrValue.replace("\"", "'");
        attrValue = attrValue.replace("<", "&lt;");
        return " " + attrName + "=\"" + attrValue + "\"";
    }

    public abstract String generateXML();
}
